package com.hemaapp.yjnh.bean;

import java.io.Serializable;

import org.json.JSONException;
import org.json.JSONObject;

import xtom.frame.XtomObject;
import xtom.frame.exception.DataParseException;

/**走走不可用日期
 * @author ZhangGuiyou
 * Date: 2015-9-9 14:33
 */
public class ZouzouDate extends XtomObject implements Serializable {
	
	private static final long serialVersionUID = 1L;

	private String id;// 主键id	
	private String blog_id;//走走商品id	
	private String from_date;//开始日期
	private String to_date;//结束日期
	
	public ZouzouDate(JSONObject jsonObject) throws DataParseException {
		if (jsonObject != null) {
			try {

				id = get(jsonObject, "id");
				blog_id = get(jsonObject, "blog_id");
				to_date = get(jsonObject, "to_date");
				from_date = get(jsonObject, "from_date");

				log_i(toString());
			} catch (JSONException e) {
				throw new DataParseException(e);
			}
		}
	}
	
	@Override
	public String toString() {
		return "Blog [id=" + id + "blog_id=" + blog_id + "to_date=" +to_date +
				"from_date=" +from_date + "]";
	}
	
	/**
	 * @return the id
	 */
	public String getId() {
		return id;
	}
	public String getblog_id() {
		return blog_id;
	}
	public String getto_date() {
		return to_date;
	}
	public String getfrom_date() {
		return from_date;
	}
}
